package com.investment.util.tools;

import com.alibaba.fastjson.JSON;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Created by veicth on 2017/5/23.
 */
public class JSONParseArray {
    public static void main(String[] args){
        JSONParseArrayTool();
    }
    public static void JSONParseArrayTool(){
        List<Long> newIds = JSON.parseArray(("[3095139,9080109]"), Long.class);
        List<Long> oldIds = JSON.parseArray(("[197868,197870]"), Long.class);
        List<Long> missIds = oldIds.stream().filter(id -> !newIds.contains(id)).collect(Collectors.toList());
        System.out.println(missIds);
    }

}
